package com.itheima.infoManager.extendsDemo.manager.controller;


import com.itheima.infoManager.extendsDemo.manager.domain.Student;
import com.itheima.infoManager.extendsDemo.manager.service.StudentService;

import java.util.Scanner;

public class OtherStudentController extends BaseStudentController {
    private Scanner sc = new Scanner(System.in);
    //封装
    public Student inputStudent(String id){
        System.out.println("请输入学生姓名：");
        String name = sc.next();
        System.out.println("请输入学生年龄：");
        String age = sc.next();
        System.out.println("请输入学生生日：");
        String birthday = sc.next();
        Student stu = new Student(id,name,age,birthday);
        return stu;
    }


    
}
